package org.example.annotation;

import org.example.service.TransferService02;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
        ApplicationContext context =
                new ClassPathXmlApplicationContext("spring-annotation.xml");
        TransferService02 transferService = context.getBean("transferService", TransferService02.class);
        transferService.transfer("A", "B", 10);
    }
}
